<form action="javascript:void(0)" method="POST" id="purapp-list">
	<div id="group">
		<!--
		<div id="search">
			<input type="text" name="search-text" /><a href="javascript:void(0)" target="_self">搜索</a>
		</div>
		-->
		<?php if(isset($page['display'])) { ?>
		<div id="page">
			<div id="process"><?php echo $page['total_rows'] ?> 中的 <?php echo $page['start'] . '-' . $page['end'] ?></div>
			<?php echo $page['display']; ?>
		</div>
		<?php } ?>
	</div>
	<div id="list">
		<?php foreach ($orders as $o) { ?>
		<div class="order-list each" href="<?php echo $site['root'] . 'purchase/order/' . $o->order_id ?>">
			<div class="number"><?php echo $o->order_number; ?></div>
			<div class="person"><?php echo $o->order_realname; ?></div>
			<div class="total-price"><?php echo $o->order_total_price; ?>￥</div>
			<div class="status"><?php echo 1==$o->order_status?'<span class="c-red">':'<span class="c-009F52">'?><?php echo $order_status[$o->order_status] . '</span>' ?></div>
			<div class="create"><?php echo date('Y/m/d', $o->create_date); ?></div>
		</div>
		<?php } ?>
	</div>
</form>
<script type="text/javascript">
$('.each').click(function(){
	location.href = $(this).attr('href');
})
</script>
<?php //var_dump($orders) ?>